package com.teamcenter.rac.massupdate.converters;

import org.eclipse.core.databinding.conversion.IConverter;
import org.eclipse.ui.views.properties.IPropertySource;

public abstract class AbstractPropertySourceStringConverter
  implements IConverter
{
  public Object getFromType()
  {
    return IPropertySource.class;
  }
  
  public Object getToType()
  {
    return String.class;
  }
  
  protected String convertSource2PropertyValue(IPropertySource paramIPropertySource, String paramString)
  {
    if (paramIPropertySource != null) {
      return (String)paramIPropertySource.getPropertyValue(paramString);
    }
    return null;
  }
}
